
import {http }from '../httpIndex.js'

export default{
	//  违纪修改 /app/ClassDv/updatePunishStatus
	updatePunishStatus(id,punishType,punishStatus,fileImg,punishDesc){
		return http.post("app/ClassDv/updatePunishStatus",{id:id,punishType:punishType,punishStatus:punishStatus,fileImg:fileImg,punishDesc:punishDesc})
	},
// 违纪历史记录 /app/ClassDv/getDvHistoryByUserName
	getDvHistoryByUserName(userName){
		return http.get(`app/ClassDv/getDvHistoryByUserName?userName=${userName}`)
		
	},
	// 教官登记违纪 /app/ClassDv/createInstructorRecordDv
	createInstructorRecordDv(dvDate,classId,dvType,studentNo,dvDesc,dvArea,createBy,upload){
		return http.post("app/ClassDv/createInstructorRecordDv",{dvDate:dvDate,classId:classId,dvType:dvType,studentNo:studentNo,dvDesc:dvDesc,
		dvArea:dvArea,createBy:createBy,upload:upload})
		
	},
	// /app/ClassDv/getDvDetailById 查询违纪详情
	getDvDetailById(id){
		return http.get(`app/ClassDv/getDvDetailById?id=${id}`)
	},
	// 查询所有班级app/Class/getAllAppClassList
	getAllAppClassList(){
		return http.get("app/Class/getAllAppClassList")
	},
	
	// 通过班级ID查询班级学生 app/Class/getClassStuListByClassId
	getClassStuListByClassId(classId){
		return http.get(`app/Class/getClassStuListAllByClassId?classId=${classId}`)		
	},
}

   
